//
//  PKBaseCollectionView.swift
//  Panku
//
//  Created by mac on 2017/2/13.
//  Copyright © 2017年 Monster. All rights reserved.
//

import UIKit

class PKBaseCollectionView: UICollectionView {

    //MARK: - properties
    var placeholderView:UIView?{
        
        willSet{
            
        }
        
        didSet{
            placeholderView?.removeFromSuperview()
            self.addSubview(placeholderView!)
        }
    }
    
    init(buildClosure: (UICollectionViewFlowLayout) -> ()) {
        let flowLayout = UICollectionViewFlowLayout()
        super.init(frame: CGRect.zero, collectionViewLayout: flowLayout)
        
        setupCollectionView()
        
        buildClosure(flowLayout)
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    //设置
    private func setupCollectionView() -> Void{
        
        
    }

}
